<div>
    <div>
        <div class="panel panel-default  m-n">
            <div class="panel-heading font-bold">新增区/县代理区</div>
            <form name="agentAreaAddform" role="form" class="ng-valid form-horizontal form-validation">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">代理区域名称</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" ng-model="agentArea.name" placeholder="请输入代理区域名称" ng-trim="true" required>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">省份</label>
                        <div class="col-sm-8">
                            <select class="form-control m-b" ng-options="p.cityId as p.name for p in provinceSelectList" ng-change="upCitys()" ng-model="agentArea.provinceId">
                                <option value="">－－请选择－－</option>
                            </select>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">城市</label>
                        <div class="col-sm-8">
                            <select class="form-control m-b" ng-options="c.cityId as c.name for c in citySelectList" ng-change="upDistricts()" ng-model="agentArea.cityId">
                            </select>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">区/县(可多选)</label>
                        <span class="col-sm-8">
                            <label class="i-checks col-sm-6" ng-repeat="d in districtSelectList">
                                <input type="checkbox" value="{{d.id}}" ng-model="$parent.agentArea.districtIds[d.id]">
                                <i></i>
                                {{d.name}}
                            </label></span>
                    </div>
                </div>
                <div class="panel-footer text-right">
                    <div>
                        <button type="submit" ng-click="add()" class="btn m-b-xs w-xs btn-info">保存</button>
                        <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">取消</button>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>